@extends('admin.adminbase')
@section('content')


    <section class="hbox stretch">
        @include("admin.public.left")

        <aside>
            <section class="vbox">

                <header class="header bg-white b-b clearfix">
                    <form class="talbe-search" method="get" action="">
                        <div class="row m-t-sm">
                            <div class="col-sm-12 m-b-xs">
                                <div class="btn-group" role="group">
                                    <strong style="line-height:30px;">查看评论</strong>
                                </div>
                                <div class="btn-group pull-right">
                                    <a role="button" class="btn btn-info btn-sm " title="返回" onclick="history.back()">
                                        <i class="glyphicon glyphicon-arrow-left"></i>&nbsp;返回
                                    </a>
                                </div>
                            </div>
                        </div>
                    </form>
                </header>
                <section class="scrollable  wrapper w-f">
                    <section class="panel panel-default ">
                        <div class="row m-l-none m-r-none bg-light lter">
                            <div class="container" style="padding: 20px 0px">
                                <form id="formclass" class="form-horizontal" style="padding-top: 15px;">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">资讯标题</label>
                                        <label class="col-sm-2 control-label">{{$res->title}}</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">评论内容</label>
                                        <label class="col-sm-2 control-label">{{$res->content}}</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">评论人</label>
                                        <label class="col-sm-2 control-label">{{$res->nickname}}</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">评论平台</label>
                                        <label class="col-sm-2 control-label">{{\App\Http\Util\Site::getLabel($res->site)}}</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">评论时间</label>
                                        <label class="col-sm-3 control-label">{{\App\Http\Util\TimeHelper::formatDateTime($res->created_at)}}</label>
                                    </div>
                                </form>
                            </div>
                        </div>

                    </section>
                </section>


            </section>
        </aside>
    </section>
@endsection
@section('addscript')
    <script>
        $(function(){
            $("#formclass").submit(function(){
                var account=$("[name=account]").val();
                var password=$("[name=password]").val();
                var role_id=$("[name=role_id]").val();
                var status=$("[name=status]:checked").val();
                var back=$("[name=back]:checked").val();
                if(account==""){
                    layer.alert("帐户不得为空！");
                    return false;
                }
                return false;
            })


        });
    </script>
@endsection
